package com.dao;

import com.model.OrderRecored;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderRecoredMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(OrderRecored record);

    int insertSelective(OrderRecored record);

    OrderRecored selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(OrderRecored record);

    int updateByPrimaryKey(OrderRecored record);

    List<OrderRecored> selectAll();

    List<OrderRecored> selectByUserId(@Param(value = "bid") Integer bid);

    int deleteByBNameUId(@Param("uId") Integer uId,@Param("bookId") Integer bookId);

    List<OrderRecored> selectOrderByUserId(@Param("id") Integer id);
}